<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>增加题目</title>
</head>
<body>
<jsp:include page="title.jsp" /><br/>
<div align="center">
	<h3>增加题目</h3><br/>
	<font color="red"><s:actionerror/></font>
	<font color="red"><s:actionmessage /></font>
	
 选择题题库：<br/>
 <table>
  <tr>
   <th></th>
   <th>题目内容</th>
   <th>选项A</th>
   <th>选项B</th>
   <th>选项C</th>
   <th>选项D</th>
   <th>答案</th>
   <th></th>
   <th></th>
   <th>增加</th>
   </tr>

   <s:iterator value="#request.choicekus" >
   <tr>
		<td><ul><li></li></ul></td>
   		<td>
			 <s:property value="choiceContent" />
    	</td>
    	<td>
			 <s:property value="choiceA" />
    	</td>
    	<td>
			 <s:property value="choiceB" />
    	</td>
    	<td>
			 <s:property value="choiceC" />
    	</td>
    	<td>
			 <s:property value="choiceD" />
    	</td>
    	<td>
			 <s:property value="choiceAnswer" />
    	</td>
    	
    	<s:form action="addChoiceItemB"  namespace="" method="post">
   		<td>
   			<input type="hidden" name="choice.choiceID" value="<s:property value="choiceID" />" /><br/>
		</td>
		<td>
			<input type="hidden" name="examID" value="<s:property value="#request.editexamID" />" /><br/>
		</td>
    	<td>
			<input type="submit" value="增加"  />
		</td>
		</s:form>
	</tr>
   	</s:iterator>
   	</table>
   	<br/>
   	
   	<s:form action="deleteChoiceItemB" namespace="" method="post">
		<input type="hidden" name="examID" value="<s:property value="#request.editexamID" />" />
		<input type="submit" value="取消"/>
	</s:form>
</div>	
</body>
</html>